package del2;


public class JobProvider implements Runnable{
    PrintQueue queue;
    String user;

    public JobProvider (PrintQueue queue, String user){
		this.queue = queue;
		this.user = user;
    }

    public void run(){
	    synchronized(queue){
	    	queue.addJob(new PrintJob(user + ": " + System.currentTimeMillis()));
	    	queue.notifyAll();
	    }
    }


}
